Optimal. Leaf size=38 \[ -\frac{2 \sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \cot (e+f x)}{\sqrt{a-a \csc (e+f x)}}\right )}{f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0708915, antiderivative size = 38, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 28, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.071, Rules used = {3801, 215} \[ -\frac{2 \sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \cot (e+f x)}{\sqrt{a-a \csc (e+f x)}}\right )}{f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3801
Rule 215
Rubi steps
\begin{align*} \int \sqrt{-\csc (e+f x)} \sqrt{a-a \csc (e+f x)} \, dx &=\frac{2 \operatorname{Subst}\left (\int \frac{1}{\sqrt{1+\frac{x^2}{a}}} \, dx,x,-\frac{a \cot (e+f x)}{\sqrt{a-a \csc (e+f x)}}\right )}{f}\\ &=-\frac{2 \sqrt{a} \sinh ^{-1}\left (\frac{\sqrt{a} \cot (e+f x)}{\sqrt{a-a \csc (e+f x)}}\right )}{f}\\ \end{align*}
Mathematica [B] time = 0.775479, size = 101, normalized size = 2.66 \[ \frac{2 \tan \left (\frac{1}{2} (e+f x)\right ) \sqrt{-\csc (e+f x)} \sqrt{a-a \csc (e+f x)} \left (\tanh ^{-1}\left (\sqrt{\sec ^2\left (\frac{1}{2} (e+f x)\right )}\right )+\sinh ^{-1}\left (\tan \left (\frac{1}{2} (e+f x)\right )\right )\right )}{f \left (\tan \left (\frac{1}{2} (e+f x)\right )-1\right ) \sqrt{\sec ^2\left (\frac{1}{2} (e+f x)\right )}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.333, size = 117, normalized size = 3.1 \begin{align*} 2\,{\frac{-1+\cos \left ( fx+e \right ) }{f \left ( -1+\cos \left ( fx+e \right ) +\sin \left ( fx+e \right ) \right ) }\sqrt{- \left ( \sin \left ( fx+e \right ) \right ) ^{-1}}\sqrt{{\frac{a \left ( \sin \left ( fx+e \right ) -1 \right ) }{\sin \left ( fx+e \right ) }}} \left ( \arctan \left ( 1/2\,\sin \left ( fx+e \right ) \sqrt{-2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}} \right ) -\arctan \left ({\frac{1}{\sqrt{-2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}}} \right ) \right ){\frac{1}{\sqrt{-2\, \left ( 1+\cos \left ( fx+e \right ) \right ) ^{-1}}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{-a \csc \left (f x + e\right ) + a} \sqrt{-\csc \left (f x + e\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 0.52994, size = 764, normalized size = 20.11 \begin{align*} \left [\frac{\sqrt{a} \log \left (\frac{a \cos \left (f x + e\right )^{3} - 7 \, a \cos \left (f x + e\right )^{2} - 4 \,{\left (\cos \left (f x + e\right )^{3} + 3 \, \cos \left (f x + e\right )^{2} +{\left (\cos \left (f x + e\right )^{2} - 2 \, \cos \left (f x + e\right ) - 3\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 3\right )} \sqrt{a} \sqrt{\frac{a \sin \left (f x + e\right ) - a}{\sin \left (f x + e\right )}} \sqrt{-\frac{1}{\sin \left (f x + e\right )}} - 9 \, a \cos \left (f x + e\right ) -{\left (a \cos \left (f x + e\right )^{2} + 8 \, a \cos \left (f x + e\right ) - a\right )} \sin \left (f x + e\right ) - a}{\cos \left (f x + e\right )^{3} + \cos \left (f x + e\right )^{2} -{\left (\cos \left (f x + e\right )^{2} - 1\right )} \sin \left (f x + e\right ) - \cos \left (f x + e\right ) - 1}\right )}{2 \, f}, \frac{\sqrt{-a} \arctan \left (-\frac{{\left (\cos \left (f x + e\right )^{2} - 2 \, \sin \left (f x + e\right ) - 1\right )} \sqrt{-a} \sqrt{\frac{a \sin \left (f x + e\right ) - a}{\sin \left (f x + e\right )}} \sqrt{-\frac{1}{\sin \left (f x + e\right )}}}{2 \, a \cos \left (f x + e\right )}\right )}{f}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{- \csc{\left (e + f x \right )}} \sqrt{- a \left (\csc{\left (e + f x \right )} - 1\right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \sqrt{-a \csc \left (f x + e\right ) + a} \sqrt{-\csc \left (f x + e\right )}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]